/** 向页面推送数据 */
let pusher = null;

// 自定义向界面推送的事件
events.broadcast.on("goods.change", (data) => {
    pusher.push("goods.change", data);
});


/** 加载必须注入,这里不需要修改 */
module.exports = {
    addPusher: (pusher) => {
        // console.assert(pusher == null, "html页面推送者为空");
        this.pusher = pusher;
    }
}